export class GoogleCloudProject {
    static LIVE: string = 'xld-gfs-app'; // 'xld-gfs-admin-dev';  //'xld-gfs-app';
    static DEV: string = 'xld-guild-management-app-dev';
    static INTERNAL: string = 'gfs-internal';
}

export default class Config {
    static getEnvironment = () => {
        if (window.location.hostname == 'admin.omnix.finance') {
            return GoogleCloudProject.LIVE;
        } else {
            return GoogleCloudProject.DEV;
        }
    };

    static getAPI = (): string => {
        if (Config.getEnvironment() == GoogleCloudProject.LIVE) {
            return 'https://backend.gfs.xld.finance';
        } else {
            return 'https://dev.cloud.gfs.xld.finance';
        }
    };
}
